<table class="table table-bordered sku-table">
    <thead>
    <tr>
        <th class="actions-col"></th>
        <th>SKU 编号</th>
            <#list skuPropertyList as skuProperty>
                <th>${skuProperty.name}</th>
            </#list>
        <th>售价</th>
    </tr>
    </thead>
    <tbody>
        <#list skuList as sku>
        <tr>
            <td class="actions-col">
                <button type="button" class="btn btn-default js-remove">
                    移除
                </button>
            </td>
            <td>
                <input class="form-control" name="productSkuList[${sku_index}].code" value="${sku.code}">
            </td>
                <#list sku.productSkuPropertyList as skuProperty>
                    <th>
                        ${skuProperty.value}
                        <input type="hidden"
                               name="productSkuList[${sku_index}].productSkuPropertyList[${skuProperty_index}].skuPropertyId"
                               value="${skuProperty.skuPropertyId}">
                        <input type="hidden"
                               name="productSkuList[${sku_index}].productSkuPropertyList[${skuProperty_index}].value"
                               value="${skuProperty.value}">
                    </th>
                </#list>
            <td>
                <input class="form-control price-input" name="productSkuList[${sku_index}].price"
                       value="${sku.price!''}">
            </td>
        </tr>
        </#list>
    </tbody>
</table>
<script>
    $('.sku-table').on('click', '.js-remove', function () {
        $(this).closest('tr').remove();
    });
</script>





